﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bouyei.GeoCore.GeoParsers.Parser
{
    using Geometries;

    public class PostGISParser 
    {
        PostGIS.GeometryReader reader = null;

        public PostGISParser()
        {

        }

        public virtual Geometry FromReader(byte[] buffer, int offset = 0)
        {
            reader = new PostGIS.GeometryReader(buffer, offset);
            return reader.Reader();
        }

        public virtual byte[] ToWriter(Geometry geometry)
        {
            throw new Exception("not implemented");
        }
    }
}
